<include file="public/head"/>
</head>
<body>
<div class="wrap js-check-wrap">
    <ul class="nav nav-tabs">
        <li class="active"><a href="{:url('/plugin/code_generate/admin_index/index')}">配置表单</a></li>
    </ul>
    <form method="post" class="form-horizontal js-ajax-form margin-top-20" action="{:url('/plugin/code_generate/AdminIndex/settingPost')}">
        <div class="form-group">
            <label class="col-sm-2 control-label"><span class="form-required">*</span> 菜单名称:</label>
            <div class="col-md-6 col-sm-10">
                <input type="text" class="form-control" name="name" value="">
                <p class="help-block">添加后台菜单的名称,生成注释 @adminMenu->name，导入新菜单</p>
            </div>
        </div>
        <div class="form-group">
            <label class="col-sm-2 control-label"><span class="form-required">*</span> 控制器名:</label>
            <div class="col-md-6 col-sm-10">
                <input type="text" class="form-control" name="controllers" value="">
                <p class="help-block">首字母大写，遵循驼峰命名规则，如Student，Teacher</p>
            </div>
        </div>
        <div class="form-group">
            <label class="col-sm-2 control-label"><span class="form-required">*</span> 数据库表:</label>
            <div class="col-md-6 col-sm-10">
                <input type="text" class="form-control" name="model" value="">
                <p class="help-block">数据库中存在的表，表名全部小写，用下滑下分割，不要前缀，如student，teacher</p>
            </div>
        </div>
        <div class="form-group">
            <label class="col-sm-2 control-label"> 上级菜单:</label>
            <div class="col-md-6 col-sm-10">
                <select class="form-control" name="category">
                        <option value="">--- 不生成菜单 ---</option>
                        {$category}
                </select>
                <p class="help-block">选择上级菜单，不选择，不生成 @adminMenu注释</p>
            </div>
        </div>
        <div class="col-sm-offset-2 col-sm-10">
            <button type="submit" class="btn btn-primary js-ajax-submit">生成</button>
            <button type="reset" class="btn btn-default">重置</button>
        </div>
    </form>
</div>
<script src="__STATIC__/js/admin.js"></script>
</body>
</html>